const Download = require('koa-resume-download').Download,
	url = require('url');

function* download(next) {
	let filePath = this.params[0];

	let download = new Download(this);
	yield download.start(filePath);
	return yield next;
}

module.exports = download;